import requests
url = 'http://127.0.0.1:8000/api/add_event/'
#请求头
headers = {"content-Type": "application/x-www-form-urlencoded"}
test_data = {
    "eid": "12839",
    "name": "大米发布会",
    "limit": "100",
    "status": "1",
    "address": "光谷小米中心",
    "start_time": "2022-05-30"}
response = requests.post(url=url, headers= headers, data=test_data)
print(response.status_code)
print(response.text)
print(response.json())